/* 全局样式重置，确保登录页面铺满全屏 */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.login-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* 左侧创作内容展示 */
.creative-section {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  height: 100vh;
  box-sizing: border-box;
}

.creative-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.creative-header {
  text-align: center;
  color: white;
  z-index: 1;
  position: relative;
}

.brand-name {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: 2px;
}

.brand-slogan {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 0;
}

.creative-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
  z-index: 1;
  position: relative;
}

.creative-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.creative-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.creative-card.featured {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: relative;
}

.creative-card.featured::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 0;
  border-bottom: 20px solid #ff6b6b;
  border-radius: 0 12px 0 0;
}

.card-image {
  position: relative;
  margin-bottom: 12px;
}

.card-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff6b6b;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-title {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.creative-footer {
  z-index: 1;
  position: relative;
}

.copyright-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright-info h3 {
  color: white;
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.copyright-info p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 右侧登录表单 */
.login-section {
  flex: 1;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 40px;
  max-width: 500px;
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.back-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.wechat-login {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
}

.qr-code-icon {
  font-size: 1.2rem;
}

.login-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 32px 0;
  text-align: center;
}

.input-group {
  margin-bottom: 20px;
}

.phone-input {
  display: flex;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.phone-input:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.country-code {
  background: #f8f9fa;
  border: none;
  padding: 12px 16px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  border-right: 1px solid #e1e5e9;
}

.phone-field {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 1rem;
  outline: none;
}

.password-field,
.code-field {
  width: 100%;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.password-field:focus,
.code-field:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.code-input {
  display: flex;
  gap: 12px;
}

.code-input .code-field {
  flex: 1;
}

.send-code-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.send-code-btn:hover {
  background: #5a67d8;
}

.login-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.login-options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.switch-login-btn,
.forgot-password-btn {
  background: none;
  border: none;
  color: #667eea;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.switch-login-btn:hover,
.forgot-password-btn:hover {
  background: #f0f4ff;
}

.other-login {
  margin-bottom: 40px;
}

.other-login h4 {
  font-size: 1rem;
  color: #666;
  margin: 0 0 16px 0;
  text-align: center;
}

.login-methods {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  color: #666;
}

.method-btn:hover {
  border-color: #667eea;
  background: #f0f4ff;
  color: #667eea;
}

.method-btn span {
  font-size: 1.2rem;
}

.login-footer {
  margin-top: auto;
  text-align: center;
}

.agreement-text {
  font-size: 0.8rem;
  color: #999;
  line-height: 1.5;
  margin-bottom: 16px;
}

.agreement-link {
  color: #667eea;
  text-decoration: none;
}

.agreement-link:hover {
  text-decoration: underline;
}

.register-btn {
  background: none;
  border: 2px solid #667eea;
  color: #667eea;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.register-btn:hover {
  background: #667eea;
  color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }
  
  .creative-section {
    padding: 40px 20px;
    height: 40vh;
    min-height: auto;
  }
  
  .brand-name {
    font-size: 2rem;
  }
  
  .creative-cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .login-section {
    padding: 20px;
    max-width: none;
    height: 60vh;
    overflow-y: auto;
  }
  
  .login-methods {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .method-btn {
    flex: 1;
    min-width: 80px;
  }
  
  /* 移动端微信登录弹窗优化 */
  .qr-modal-content {
    width: 95%;
    max-width: 350px;
  }
  
  .qr-code-image {
    width: 180px;
    height: 180px;
  }
  
  .qr-code-container {
    padding: 24px 16px;
  }
  
  .qr-modal-header {
    padding: 16px 20px;
  }
  
  .qr-modal-footer {
    padding: 16px 20px;
  }
} 

/* 微信扫码登录弹窗 */
.wechat-qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.qr-modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
}

.qr-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
  font-weight: 600;
}

.close-qr-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.close-qr-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.qr-code-container {
  padding: 32px 24px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qr-code-image {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #07c160;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.qr-loading p {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
}

.qr-status {
  margin-top: 16px;
}

.status-message {
  text-align: center;
}

.status-message p {
  margin: 8px 0;
  color: #333;
  font-size: 0.9rem;
}

.status-message.scanned p {
  color: #07c160;
  font-weight: 600;
}

.status-message.confirmed p {
  color: #07c160;
  font-weight: 600;
}

.status-message.expired p {
  color: #ff4d4f;
  font-weight: 600;
}

.status-tip {
  color: #999 !important;
  font-size: 0.8rem !important;
  font-weight: normal !important;
}

.refresh-qr-btn {
  background: #07c160;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.refresh-qr-btn:hover {
  background: #06ad56;
  transform: translateY(-1px);
}

.qr-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #e9ecef;
  text-align: center;
  background: #f8f9fa;
}

.qr-modal-footer p {
  margin: 4px 0;
  color: #666;
  font-size: 0.9rem;
}

.qr-tip {
  color: #999 !important;
  font-size: 0.8rem !important;
}

/* 微信登录按钮样式优化 */
.wechat-login {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.wechat-login:hover {
  background: #f0f4ff;
  color: #07c160;
}

.qr-code-icon {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

  .wechat-login:hover .qr-code-icon {
    transform: scale(1.1);
  }
  
  /* 登录提示样式 */
  .login-tips {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
  }
  
  .login-tips p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
  }
  
  .login-tips p:first-child {
    color: #333;
    font-weight: 600;
  } 

/* 用户信息显示 */
.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #07c160;
  object-fit: cover;
}

.user-name {
  margin: 0;
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
}

/* 错误状态样式 */
.status-message.error p {
  color: #ff4d4f !important;
  font-weight: 600;
} 